package com.focus.base.module.support.file.domain.form;

import com.focus.base.common.domain.PageParam;
import com.focus.base.common.swagger.SchemaEnum;
import com.focus.base.common.validator.enumeration.CheckEnum;
import com.focus.base.module.support.file.constant.FileFolderTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文件信息查询
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FileQueryForm extends PageParam {

    @SchemaEnum(value = FileFolderTypeEnum.class, desc = "文件夹类型")
    @CheckEnum(value = FileFolderTypeEnum.class, message = "文件夹类型 错误")
    private Integer folderType;

    @Schema(description = "文件名词")
    private String fileName;

    @Schema(description = "文件Key")
    private String fileKey;

    @Schema(description = "文件类型")
    private String fileType;

    @Schema(description = "创建人")
    private String creatorName;
}
